package com.zyh.day02

object ApplyTest {
  def main(args: Array[String]): Unit = {
    var s = new Student
    s say()
    s()
  }
}
class Student{
  def say(): Unit ={
    println("say()")
  }
  def apply(): Unit ={
    println("apply()")
  }
}
